﻿using AutoMapper;
using Domain.Flow;
using U.B.DoMain;
using U.B.DoMain.rabbitsAAA;
using U.B.WriteApi.Command;
using U.B.WriteApi.Command;
using U.B.WriteApi.Command.RabbitBWss;

namespace U.B.WriteApi
{
    public class Mappingprofile: Profile
    {
        public Mappingprofile()
        {
            CreateMap<User, AdduserCommand>().ReverseMap();
            CreateMap<Role, AddRoleCommand>().ReverseMap();
            CreateMap<User, UpdateuserroleCommand>().ReverseMap();
            CreateMap<Role, UpdateroleCommand>().ReverseMap();
            CreateMap<Menu, AddMenuCommand>().ReverseMap();
            CreateMap<Menu, UpdateMenuCommand>().ReverseMap();
            CreateMap<AddLevaCommand, LeaveApp>().ReverseMap();
            CreateMap<UpdateLeaveCommand, LeaveApp>().ReverseMap();
            CreateMap<UpdLeaveCommand, LeaveApp>().ReverseMap(); 
            CreateMap<AddrabbitsCommand, Product>().ReverseMap();
            CreateMap<UpdaterabbitsCommand, Product>().ReverseMap();
            CreateMap<AddFarmCommmand, Farm>().ReverseMap(); 
            CreateMap<AddImmuneCommand, Immune>().ReverseMap();
            CreateMap<AddFirmCommand, Firm>().ReverseMap(); 
            CreateMap<AddKillCommmand, Kill>().ReverseMap();
            CreateMap<AddFirmsCommand, Firm>().ReverseMap();
            CreateMap<AddSupplierCommand, Supplier>().ReverseMap(); 
            CreateMap<UpdateFarmCommmand, Farm>().ReverseMap();
            CreateMap<UpdateKillCommmand, Kill>().ReverseMap();
            CreateMap<AddPicCommand, Picture>().ReverseMap();
            CreateMap<AddPicACommand, PICA>().ReverseMap(); 
            CreateMap<UpdatePicCommand, Picture>().ReverseMap();
        }
        
    }
}
